package com.online.service;

import com.online.entity.JudgeQuestion;

import java.util.List;

public interface JudgeQuestionService {
    /**
     * 增加判断题
     * @param judgeQuestion
     * @return
     */
    int add(JudgeQuestion judgeQuestion);

    /**
     * 查询最后一条记录的questionId
     * @return
     */
    JudgeQuestion findOnlyQuestionId();

    List<JudgeQuestion> findByIdAndType(Integer paperId);

    List<Integer> findBySubject(String subject, Integer judgeNumber);
}
